package zunyi05;

/**
 * 矩形类
 */
public class Rectangle {
    private double length;//长
    private double wide;//宽

    public Rectangle() {
    }

    public Rectangle(double length, double wide) {
        this.length = length;
        this.wide = wide;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWide() {
        return wide;
    }

    public void setWide(double wide) {
        this.wide = wide;
    }

    public void count(){
        System.out.println("低面积为="+length*wide);
    }
}
